package com.itheima;

import com.itheima.pojo.Teacher;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppForLife {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        Teacher teacher = classPathXmlApplicationContext.getBean("teacher", Teacher.class);
        System.out.println(teacher);
        classPathXmlApplicationContext.close();
    }
}
